const api = {
	reg: '/user/reg',
	login: '/user/login',
	sendSms: '/user/sendSms',
	code_login:'/user/code_login',
	forget:'/user/forget',
	updatePwd:'/user/updatePwd',
	getuserInfo:'/user/getuserInfo',
	editUserInfo:'/user/editUserInfo'
}
// 注册
export const regApi = (data) => {
	return uni.$u.http.post(api.reg, data)
}
// 登录
export const loginApi = (data) => {
	return uni.$u.http.post(api.login, data)
}
// 发送验证码
export const sendSmsApi = (data) => {
	return uni.$u.http.post(api.sendSms, data)
}
// 验证码登录
export const codeLoginApi = (data) => {
	return uni.$u.http.post(api.code_login, data)
}
// 忘记密码
export const forgetApi = (data) => {
	return uni.$u.http.post(api.forget, data)
}
// 修改密码
export const updatePwdApi = (data) => {
	return uni.$u.http.post(api.updatePwd, data)
}
// 获取用户信息
export const getuserInfoApi = (data) => {
	return uni.$u.http.post(api.getuserInfo, data)
}
// 修改用户信息
export const editUserInfoApi = (data) => {
	return uni.$u.http.post(api.editUserInfo, data)
}